import requestUtils from '@/common/utils/requestUtils.js'
import requestUtilsNoLoding from '@/common/utils/requestUtilsNoLoding.js'
import commonConstants from '@/common/constants/commonConstants.js'

export default {

	/**
	 * 获取我的应用
	 */
	getGrantAuthorizationNormalMenuTreeListByUser(successCallback) {
		let url = commonConstants.request.context.path.ems + '/auth/pdaAuthMenu/getGrantAuthorizationNormalMenuTreeListByUser';
		const body = {
			"systemCode":"huanyu-cer-app",
			"menuTypeList": [1, 2,20,3],
			"systemTypeList": [1]
		}
		return requestUtilsNoLoding.getListByCondition(url, body, successCallback)
	},
	//设备列表-设备信息- 根据条件查询信息
	tokenLogin(param,successCallback,errorCallback){
		
	  let url = commonConstants.request.context.path.auth + '/login/tokenLogin';
	  
	  return  requestUtils.getInfoByCondition(url,  param, successCallback,errorCallback)
	}
	
}
